import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/gift/getGiftList',
    method: 'get',
    params
  })
}

export function getItemList(params) {
  return request({
    url: '/gift/getItemList',
    method: 'get',
    params
  })
}

export function addGift(data) {
  return request({
    url: '/gift/addGift',
    method: 'post',
    data
  })
}

export function updateGift(data) {
  return request({
    url: '/gift/updateGift',
    method: 'put',
    data
  })
}

export function deleteById(id) {
  return request({
    url: `/party/deleteGiftById/${id}`,
    method: 'delete'
  })
}

